<!-- 单选  文件类型 选项  -->

<style>
    #single-file-chosed .right-click-pop-up li a i{
        font-size: 14px;
    }
    /*#single-file-chosed .dropdown{*/
        /*min-width: 250px;*/
    /*}*/
    /*#single-file-chosed .dropdown li{*/
        /*height:30px;*/
        /*line-height:30px;*/
    /*}*/
    /*#single-file-chosed .dropdown li span,#single-file-chosed .dropdown li i{*/
        /*color:#eee;*/
    /*}*/
</style>

<div class="pull-right" id="single-file-chosed" ng-if="!choseFile.isRoot() && choseFile.isDocument() && multipleChooseFiles.length==1">
    <ul class="list-inline n-m right-click-pop-up" ng-if="!currentFolder.isReadonly()">
        <!--<li class="cbutton adjust-btn " click-effect ng-click="shareFile(choseFile)">-->
            <!--<i class="fa fa-link" title="{{'share_file' | translate }}"></i>-->
        <!--</li>-->
        <li class="cbutton adjust-btn " click-effect ng-click="preview(choseFile)" ng-if="choseFile.allowableActions.canGetContentStream" ng-class="{'style-disable':!choseFile.canPreview(),'':choseFile.canPreview()}">
            <i class="cbutton adjust-btn__icon fa fa-eye" title="{{'preview' | translate }}" ></i>
        </li>
        <li style="background:url('img/merge-pdf.png');background-size: 80%;background-repeat: no-repeat;background-position: 50% 50%;" ng-if="device=='phantom-online'" ng-mousedown="mergePdf(multipleChooseFiles,$event)" class="cbutton adjust-btn " click-effect ng-class="{'hide':canMerge(multipleChooseFiles)==false,'':canMerge(multipleChooseFiles)}" title="{{'merge_pdf' | translate }}">
            <i class="fa fa-trash-o" style="visibility: hidden;"></i>
        </li>
        <li style="background: url(img/page-organizer.png);background-size: 60%;background-repeat: no-repeat;background-position: 50% 50%;" ng-click="organizePDFPage(choseFile)" class="cbutton adjust-btn " click-effect ng-show="choseFile.contentStreamMimeType=='application/pdf' && device=='phantom-online'" title="{{'organize_pdf_page' | translate }}">
            <i class="fa fa-info-circle" style="visibility: hidden;"></i>
        </li>
        <li class="cbutton adjust-btn " click-effect ng-if="choseFile.allowableActions.canDeleteObject " ng-click="delete(choseFile)">
            <i class="fa fa-trash-o" title="{{'delete' | translate }}" ></i>
        </li>
        <li class="cbutton adjust-btn " click-effect title="{{'share_file' | translate }}">
            <span class="right-top-share-icon-container">
                <i style="position: relative;z-index:0;" class="fa fa-link" title="{{'share_file' | translate }}" ></i>
                <span class="cloud-reading-share" file="choseFile" currentScope="this"></span>
            </span>
        </li>
        <!--<li ng-click="showInfo(choseFile)">-->
            <!--<i class="fa fa-info" title="{{'info' | translate }}" ></i>-->
        <!--</li>-->
        <li style="padding: 0">
            <div class="dropdown">
                <a class="cbutton adjust-btn " click-effect class="dropdown-toggle" type="button" data-toggle="dropdown">
                    <i class="fa fa-ellipsis-v" style="color:white;font-size:20px;"></i>
                    <!--<i class="fa fa-lock" style="font-size:8px;position: absolute;bottom:10px;right: 0px;" ng-show="choseFile.isVersionSeriesCheckedOut"></i>-->
                </a>
                <ul class="dropdown-menu right-click-pop-up" style="right:0">
                    <li ng-if="choseFile.allowableActions.canApplyACL && !searchModeIsOn" ng-click="moveTo(choseFile,$event)">
                        <a href="">
                            <span class="fa-stack" style="width:1em;">
                                <i class="fa fa-folder fa-stack-1x"></i>
                                <i class="fa fa-arrow-right fa-stack-1x impt-color sub-color" style="font-size:12px;color:white;"></i>
                            </span>
                            <span translate="move_to"></span>
                        </a>
                    </li>
                    <!--<li ng-if="" ng-click="changeSelectMode(choseFile)">-->
                        <!--<a href="javascript:;">-->
                            <!--<i class="fa fa-fw fa-mouse-pointer" title="{{'multiple_select_mode' | translate}}" ></i>-->
                            <!--<span translate="multiple_select_mode"></span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <li ng-if="choseFile.allowableActions.canUpdateProperties" ng-click="rename(choseFile)">
                        <a href="">
                            <i class="fa fa-fw fa-pencil" title="{{'rename' | translate}}" ></i>
                            <span translate="rename"></span>
                        </a>
                    </li>
                    <li ng-if="choseFile.allowableActions.canGetContentStream && supportFile && (device != 'foxitReader' || isIEorEdge) && !isSafari" ng-click="download(choseFile)">
                        <a href="">
                            <i class="fa fa-fw fa-download fa-lg" title="{{'download' | translate }}" ></i>
                            <span translate="download"></span>
                        </a>
                    </li>
                    <li ng-if="choseFile.allowableActions.canUpdateProperties " ng-click="openModifyFilePicker(choseFile)">
                        <a href="">
                            <i class="fa fa-fw fa-arrow-up fa-lg" title="{{'upload_new_version' | translate }}" ></i>
                            <span translate="upload_new_version"></span>
                        </a>
                    </li>
                    <!--<li ng-if="choseFile.allowableActions.canCheckOut " ng-click="checkOut(choseFile)">-->
                        <!--<a href="">-->
                            <!--<i class="fa fa-fw fa-lock fa-lg" title="{{'check_out' | translate}}" ></i>-->
                            <!--<span translate="check_out"></span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <!--<li ng-if="choseFile.allowableActions.canCheckIn " ng-click="checkIn(choseFile)">-->
                        <!--<a href="">-->
                            <!--<i class="fa fa-fw fa-unlock fa-lg" title="{{'check_in' | translate}}" ></i>-->
                            <!--<span translate="check_in"></span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <!--<li ng-if="choseFile.allowableActions.canCancelCheckOut " ng-click="cancelCheckOut(choseFile)">-->
                        <!--<a href="">-->
                            <!--<i class="fa fa-fw fa-unlock-alt fa-lg" title="{{'cancel_check_out' | translate}}" ></i>-->
                            <!--<span translate="cancel_check_out"></span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <!--<li ng-if="choseFile.isAllowEdit()" ng-class="{'style-disable':!choseFile.canEdit()}" ng-click="edit(choseFile)">-->
                        <!--<a href="">-->
                            <!--<i class="fa fa-fw fa-edit" title="{{'edit' | translate }}" ></i>-->
                            <!--<span translate="edit"></span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <!--<li ng-click="sendCopy(choseFile)">-->
                        <!--<a href="">-->
                            <!--<i class="fa fa-fw fa-share-alt" title="send copy" ></i>-->
                            <!--<span translate="send_copy"></span>-->
                        <!--</a>-->
                    <!--</li>-->
                    <!--<li ng-if="choseFile.isDocument() && isWindowPlatForm && multipleChooseFiles.length<2 " ng-click="libreOfficePreview(choseFile)">-->
                        <!--<a href="">-->
                            <!--<i class="fa fa-fw fa-external-link"></i>-->
                        <!--</a>-->
                    <!--</li>-->
                    <li ng-show="choseFile.isDocument() && repository == 'fxcld' && device=='foxitReader' && showSendEmail">
                        <a ng-click="sendViaEmail(choseFile)">
                            <i class="fa fa-envelope-o"></i> {{'send_via_email' | translate }}
                        </a>
                    </li>
                </ul>
            </div>
        </li>

        <!--<li ng-if="choseFile.allowableActions.canGetContentStream" ng-class="{'style-disable':!choseFile.canPreview(),'':choseFile.canPreview()}">-->
            <!--<i class="fa fa-eye fa-lg" title="{{'preview' | translate }}" ng-click="preview(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.allowableActions.canGetContentStream && supportFile">-->
            <!--<i class="fa fa-download fa-lg" title="{{'download' | translate }}" ng-click="download(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.allowableActions.canUpdateProperties">-->
            <!--<i class="fa fa-pencil" title="{{'rename' | translate}}" ng-click="rename(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.allowableActions.canDeleteObject">-->
            <!--<i class="fa fa-trash-o fa-lg" title="{{'delete' | translate }}" ng-click="delete(choseFile)"></i>-->
        <!--</li>-->
        <li ng-if="choseFile.allowableActions.canSetContentStream && choseFile.allowableActions.canCheckIn">
            <i class="fa fa-arrow-up fa-lg" title="{{'upload_new_version' | translate }}" ng-click="uploadNewContent(choseFile)"></i>
        </li>
        <!--<li ng-if="choseFile.allowableActions.canCheckOut && repository!='fxcld'">-->
            <!--<i class="fa fa-lock fa-lg" title="{{'check_out' | translate}}" ng-click="checkOut(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.allowableActions.canCheckIn">-->
            <!--<i class="fa fa-unlock fa-lg" title="{{'check_in' | translate}}" ng-click="checkIn(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.allowableActions.canCancelCheckOut && choseFile.allowableActions.canCheckIn">-->
            <!--<i class="fa fa-unlock-alt fa-lg" title="{{'cancel_check_out' | translate}}" ng-click="cancelCheckOut(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.isDocument() && isWindowPlatForm && multipleChooseFiles.length<2 && repository!='fxcld'">-->
            <!--<i class="fa fa-external-link" ng-click="libreOfficePreview(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.allowableActions.canAddObjectToFolder && repository!='fxcld'">-->
            <!--<i class="fa fa-share" title="{{'add_to' | translate }}" ng-click="addToFolder(choseFile)"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.isAllowEdit() && repository!='fxcld'" ng-class="{'style-disable':!choseFile.canEdit(),'':choseFile.canEdit()}" ng-click="edit(choseFile)">-->
            <!--<i class="fa fa-edit" title="{{'edit' | translate }}" ></i>-->
        <!--</li>-->
        <!--<li ng-click="shareFile(choseFile)" ng-if="device=='platform-pad'">-->
                <!--<i class="fa fa-link" title="{{'share_file' | translate }}"></i>-->
        <!--</li>-->
        <!--<li ng-if="choseFile.allowableActions.canGetContentStream && device=='platform-pad'" ng-class="{'style-disable':!file.canPreview(),'':choseFile.canPreview()}" ng-click="preview(file,$event)">-->
                <!--<i class="fa fa-eye" title="{{'preview' | translate }}"></i>-->
        <!--</li>-->
    </ul>
    <ul class="list-inline n-m right-click-pop-up" ng-if="currentFolder.isReadonly()">

        <li class="cbutton adjust-btn " click-effect ng-click="preview(choseFile)" ng-if="choseFile.allowableActions.canGetContentStream" ng-class="{'style-disable':!choseFile.canPreview(),'':choseFile.canPreview()}">
            <i class="cbutton adjust-btn__icon fa fa-eye" title="{{'preview' | translate }}" ></i>
        </li>

    </ul>
</div>
<!-- 单 文件夹的  选项-->
<!---->
<!--<input class="col-sm-12 col-input"-->
<!--show-focus="isEdit"-->
<!--type="text"-->
<!--ng-model='file.name'-->
<!--ng-change="rename(file, oldName);oldName=file.name"-->
<!--ng-blur="isEdit = false"-->
<!--ng-model-options="{ updateOn: 'blur'}"-->
<!--ng-click="$event.stopPropagation()"-->
<!--/>-->
<!-- 多选 -->
<div class="pull-right" ng-if="(multipleChooseFiles.length>1) && !currentFolder.isReadonly()">
    <ul class="list-inline n-m">
        <!--<li ng-if="!searchModeIsOn" ng-mousedown="moveTo(multipleChooseFiles,$event)">-->
            <!--<span class="fa-stack" style="width:1em;">-->
                <!--<i class="fa fa-folder fa-stack-1x"></i>-->
                <!--<i class="fa fa-arrow-right fa-stack-1x impt-color"></i>-->
            <!--</span>-->
        <!--</li>-->
        <li>
            <i class="fa fa-trash-o" title="{{'delete' | translate }}" ng-click="multipleDel($event,false)"></i>
        </li>
        <li style="background:url('img/merge-pdf.png');background-size: 90%;background-repeat: no-repeat;background-position: 50% 45%;" ng-if="device=='phantom-online'" ng-mousedown="mergePdf(multipleChooseFiles,$event)" ng-class="{'style-disable':disableMerge,'hide':canMerge(multipleChooseFiles)==false,'':canMerge(multipleChooseFiles)}" title="{{'merge_pdf' | translate }}">
            <i class="fa fa-trash-o" style="visibility: hidden;"></i>
        </li>
    </ul>
</div>
<!-- 单选 文件夹 类型 -->
<div class="pull-right" ng-if="(!choseFile.isRoot() && !choseFile.isDocument() && multipleChooseFiles.length==1 && choseFile.id !== currentFolder.id) && !currentFolder.isReadonly() && !choseFile.isReadOnlyFolder()">
    <ul class="list-inline n-m">
        <li class="cbutton adjust-btn " click-effect ng-if="choseFile.allowableActions.canUpdateProperties" ng-click="rename(choseFile)" ng-mousedown="stopBubble($event)">
            <i class="fa fa-pencil" title="{{'rename' | translate}}"></i>
        </li>
        <!--<li ng-if="choseFile.allowableActions.canApplyACL && title =='Shared Document'">-->
            <!--<i class="fa fa-cog" title="{{'manage_permission' | translate}}" ng-click="setPermission(choseFile)"></i>-->
        <!--</li>-->
        <li class="cbutton adjust-btn " click-effect ng-if="choseFile.allowableActions.canDeleteObject " ng-click="deleteFolder(choseFile, $event, true,true)">
            <i class="fa fa-trash-o" title="{{'delete' | translate }}"></i>
        </li>

        <li style="padding: 0" ng-if="!searchModeIsOn">
            <div class="dropdown">
                <a class="dropdown-toggle cbutton adjust-btn " click-effect type="button"
                   data-toggle="dropdown">
                    <i class="fa fa-ellipsis-v" style="color:white;font-size:20px;"></i>
                    <!--<i class="fa fa-lock" style="font-size:8px;position: absolute;bottom:10px;right: 0px;" ng-show="choseFile.isVersionSeriesCheckedOut"></i>-->
                </a>
                <ul class="dropdown-menu right-click-pop-up" style="right:0">
                    <li ng-if="!searchModeIsOn">
                        <a class="popup-left-border" ng-click="moveTo(file,$event)">
                            <span class="fa-stack">
                                <i class="fa fa-folder fa-stack-1x"></i>
                                <i class="fa fa-arrow-right fa-stack-1x impt-color"></i>
                            </span>
                            {{ 'move_to' | translate }}
                        </a>
                    </li>

                </ul>
            </div>
        </li>
    </ul>
</div>
<!--  未选中文件或者文件夹  当前所在文件夹  -->
<div class="pull-right" ng-if="(!multipleChooseFiles.length || choseFile.id == currentFolder.id) && !currentFolder.isReadonly()">
    <ul class="list-inline n-m">
        <li class="cbutton adjust-btn " click-effect ng-if="currentFolder.allowableActions.canCreateFolder" ng-click="createFolder()">
            <i class="fa fa-folder-open fa-lg" title="{{'create_folder' | translate}}"></i>
        </li>
        <li class="cbutton adjust-btn " click-effect ng-if="supportFile && currentFolder.allowableActions.canCreateDocument" ng-click="openUploadFilePicker(choseFile)">
            <i class="fa fa-arrow-up fa-lg" title="{{'upload_file' | translate }}"></i>
        </li>
    </ul>
</div>